import datetime
import random
import math


class Guest:
    # 属性：公共属性、私有属性
    __id = math.floor(random.random() * 10000)
    name = "Guest01"  # 姓名
    gender = True  # 性别
    __birthday = datetime.date.today()  # 生日
    telephone = "110"  # 电话

    # 构造函数，初始化赋值
    def __init__(self, name, gender, telephone):
        self.name = name
        self.gender = gender
        self.telephone = telephone

    # 显示个人信息方法
    def showInfo(self):
        print(self.name, self.__birthday, self.gender, self.telephone)
